package spark.core.scala

/**
 * Created by Administrator on 2018/2/10/010.
 */
class SecondarySort(val first:Int,val second: Int) extends  Ordered[SecondarySort] with Serializable{
  override def compare(that: SecondarySort): Int = {
    if(this.first - that.first !=0){
      this.first - that.first
    }else{
      this.second - that.second
    }
  }
}
